import {request} from "@/utils/request";
import {getToken} from "@/utils/storage";

export function list() {
    return request({
        url:`/api/classRoom/pageList`,
        method: 'get',
        headers: {"token": getToken()}
    })
}

export function save(name) {
    return request({
        url:`/api/classRoom/save/${name}`,
        method: "post",
        headers: {"token": getToken()}
    })
}

export function del(id) {
    return request({
        url:`/api/classRoom/delete/${id}`,
        method: "delete",
        headers: {"token": getToken()}
    })
}
